{
  defaultLocale = "zh_CN.UTF-8";
  inputMethod = {
    enable = true;
    type = "fcitx5";
    fcitx5 = {
      waylandFrontend = true;
      addons = with pkgs; [
        fcitx5-mellow-themes
        (fcitx5-rime.override {
          rimeDataPkgs = [
            rime-data
            rime-flypy
            (linkFarm "rime-custom" {
              "share/rime-data/default.custom.yaml" = writers.writeYAML "default.custom.yaml" {
                patch.schema_list = [ { schema = "flypy"; } ];
              };
            })
          ];
        })
      ];
      settings.addons.classicui.globalSection = {
        # 主题
        Theme = "mellow-graphite";
        # 深色主题
        DarkTheme = "mellow-graphite-dark";
        # 跟随系统浅色/深色设置
        UseDarkTheme = "True";
      };
    };
  };
}
